﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.Enums;
using System.Reflection;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsValidateRoom _iCsValidateRoom = null;
        /// <summary>
        /// 获取ICsAppeal实现业务的实例
        /// </summary>
        /// <returns></returns>
        public static ICsValidateRoom CreateCsValidateRoom()
        {
            if (_iCsValidateRoom == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsValidateRoom_Sys";
                _iCsValidateRoom = (ICsValidateRoom)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsValidateRoom;
        }
    }

    public interface ICsValidateRoom
    {
       /// <summary>
       /// 插入验房单
       /// </summary>
       /// <param name="dt">验房单数据集合</param>
       /// <returns></returns>
        bool Insert(DataTable dt);

        /// <summary>
        /// 获取验房单空表结构
        /// </summary>
        /// <returns></returns>
        DataTable GetEmptyTable();


        String GetValidateRoomID(String Identifier);
    }
}
